import { Injectable } from '@angular/core';
import { HttpClient } from '../../../providers/httpClient';
import { Config } from '../../../providers/config';

@Injectable()
export class DemoListService {
	constructor(
		public httpClient: HttpClient,
		public config: Config
	) { }
	getListData(page) {
		let postBody = {
			"module": "Email",
			"method": "getMailInfByCondition",
			"params": {
				"listType": "IMailInbox",
				"bostitle": null,
				"sendAccount": null,
				"recipients": null,
				"bDate": null,
				"eDate": null,
				"opraterLogid": "fengjk",
				"orderField": "mailbosid",
				"orderDirect": null,
				"page": page,
				"pageSize": this.config.pageSize
			}
		};
		return this.httpClient.post(postBody,{
			isShowLoading:true
		});
	}
}